<nb-card>
  <nb-card-header>
    <span>添加生产信息</span>
    <button class="close" aria-label="Close" (click)="close()">
      <span aria-hidden="true">&times;</span>
    </button>
  </nb-card-header>
  <nb-card-body>
    <div class="row">
      <div class="col-md-12">
        <form #form="ngForm" class="form-horizontal" (ngSubmit)="submit()">
          <div class="form-group row">
            <label for="input1" class="col-sm-3 form-control-label">选择食品</label>
            <div class="col-sm-9">
              <select id="input1" [(ngModel)]="manualReady.food" name="food" class="form-control">
                <option *ngFor="let food of foods" [value]="food.id">{{food.Name}}</option>
              </select>
            </div>
          </div>

          <div class="form-group row">
            <label for="input2" class="col-sm-3 form-control-label">选择生产商</label>
            <div class="col-sm-9">
              <select id="input2" [(ngModel)]="manualReady.manufacture" name="manufacture" class="form-control">
                <option *ngFor="let manuf of manufactures" [value]="manuf.id">{{manuf.Name}}</option>
              </select>
            </div>
          </div>

          <div class="form-group row">
            <label for="inputEmail5" class="col-sm-3 form-control-label">批次号</label>
            <div class="col-sm-9">
              <input type="text" id="inputEmail5" [(ngModel)]="manualReady.batch" name="batch" class="form-control" placeholder="批次号">
            </div>
          </div>

          <div class="form-group row">
            <label for="inputEmail8" class="col-sm-3 form-control-label">数量</label>
            <div class="col-sm-9">
              <input type="text" id="inputEmail8" [(ngModel)]="manualReady.qty" name="qty" class="form-control" placeholder="生产数量">
            </div>
          </div>

          <div class="form-group row">
            <label for="inputEmail6" class="col-sm-3 form-control-label">生产日期</label>
            <div class="col-sm-9">
              <input nbInput
                     id="inputEmail6"
                     placeholder="生产时间"
                     [nbDatepicker]="manupicker"
                     [(ngModel)]="manualReady.produceTime" name="produceTime">
              <nb-datepicker #manupicker></nb-datepicker>
            </div>
          </div>

          <div class="form-group row">
            <label for="inputEmail7" class="col-sm-3 form-control-label">上市日期</label>
            <div class="col-sm-9">
              <input nbInput
                     id="inputEmail7"
                     placeholder="上市时间"
                     [nbDatepicker]="listpicker"
                     [(ngModel)]="manualReady.listingTime" name="listingTime">
              <nb-datepicker #listpicker></nb-datepicker>
            </div>
          </div>

        </form>
      </div>
    </div>
  </nb-card-body>
  <nb-card-footer>
    <button class="btn btn-md btn-primary" (click)="submit()">提交</button>
  </nb-card-footer>
</nb-card>
